package com.h6.crm.util.pojo.vo;

import lombok.Data;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;

@Schema(description = "查询报价实体")
@Data
public class QueryQuoteReocrdVO {

    @Schema(description = "报价状态: 失效，生效，审批中，审批不通过，审批通过，成交")
    String quoteStatus;

    @Schema(description = "项目名称")
    String projectName;

    @Schema(description = "商标ID")
    Long entityId;

    @Schema(description = "报价人(业务员)ID")
    Long bidderId;

    @Schema(description = "报价开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    Date startDate;

    @Schema(description = "报价结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    Date endDate;

    @Schema(description = "当前页")
    @NotNull(message = "当前页不能为空")
    Integer page;

    @Schema(description = "页数")
    @NotNull(message = "页数不能为空")
    Integer pageSize;

}
